package com.tron.dobest.security;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.crypto.password.PasswordEncoder;

@Slf4j
public class TronPasswordEncoder implements PasswordEncoder {
    @Override
    public String encode(CharSequence charSequence) {
        String string = charSequence.toString();
        log.info("======密码转换======:{}",string);
        return string+111;
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
        String arg1 = charSequence.toString();
        log.info("======密码匹配======用户输入密码:{},数据库存储密码:{}",arg1,s);
        return true;
    }

}
